package Project;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ComponentEvent;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JPanel;

public abstract class UI extends JPanel implements KeyListener, MouseListener{

	public void paint(Graphics g){
		((Graphics2D)g).scale((double)Main.getActualComponentSize().getX()/Constants.width,(double)Main.getActualComponentSize().getY()/ Constants.height); 
	}
	protected UI /*@ spec_public @*/ previousUI;
	
	public abstract void mouseClicked(MouseEvent e);

	public abstract void mousePressed(MouseEvent e);

	public abstract void mouseReleased(MouseEvent e);

	public abstract void mouseEntered(MouseEvent e);

	public abstract void mouseExited(MouseEvent e);

	public abstract void keyTyped(KeyEvent e);

	public abstract void keyPressed(KeyEvent e);

	public abstract void keyReleased(KeyEvent e);
	
	public void componentResized(ComponentEvent e)
	{
		
	}

}
